package com.itheima.info.manger.system.controller;

import com.itheima.info.manger.system.domain.Student;
import com.itheima.info.manger.system.service.StudentService;

import java.util.Scanner;

public class StudentController extends BaseStudentController {
    private Scanner sc = new Scanner(System.in);
    //录入学生信息
    @Override
    public Student getStudentInfo(String sid) {
        System.out.println("输入姓名");
        String name = sc.next();
        System.out.println("输入年龄");
        int age = sc.nextInt();
        System.out.println("输入生日");
        String birthday = sc.next();
        Student student = new Student();
        student.setSid(sid);
        student.setName(name);
        student.setAge(age);
        student.setBirthday(birthday);
        return student;
    }


}
